// import Vue from "vue";
import eleFormBuilder from "../components/FormBuilder";
// const Components = {
//     formBuilder
// };
eleFormBuilder.install = function (Vue, config){
    if (!Vue) {
        window.Vue = Vue
    }
    Vue.config[eleFormBuilder.name] = config
    console.log(eleFormBuilder)
    eleFormBuilder.methods['getConfig'] = () => config;
    Vue.component(eleFormBuilder.name, eleFormBuilder)
}
// Object.keys(Components).forEach(name => {
//   Vue.component(name, Components[name]);
// });

export default eleFormBuilder;